package org.cqipc.edu.service;

import org.cqipc.edu.common.Pages;
import org.cqipc.edu.vo.GoodsResultVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

/**
 * @Description: 宠物服务接口
 * @ClassNmae: GoodsService
 * @Author: HeYue
 * @DateTime: 2020-11-01 16:42
 **/
public interface GoodsService {

    Object addGoodsInfo(MultipartFile file, GoodsResultVO goodsResultVO, HttpSession session) throws IOException;

    Object getGoodsPage(Pages pages, HttpSession session);

    Object batchGrounding(List<Integer> ids);

    Object batchDelete(List<Integer> ids);

    Object batchUndercarriage(List<Integer> ids);

    Object getGoodsById(Integer id);

    Object getPageCount(HttpSession session);

    Object getGoodsPageShow(Pages pages, HttpSession session);

    Integer getPageCountToiIndex();

    Object getGoodsShowToIndex(Pages pages, HttpSession session);

    Object getGoodsShowById(Integer id);

    Object seacherInfo(String text, Pages pages, HttpSession session);

    Integer seacherInfoCount(String text);
}
